package com.api.cdfortis.dto;

import java.io.Serializable;

/**
 * 用于封装返回结果
 * @param <T>
 */
public class ResultDto<T> implements Serializable {
    private ReturnCodeDto returnCode;
    private T data;

    public ResultDto(ReturnCodeDto returnCode, T data) {
        this.returnCode = returnCode;
        this.data = data;
    }

    public ReturnCodeDto getReturnCode() {
        return returnCode;
    }

    public void setReturnCode(ReturnCodeDto returnCode) {
        this.returnCode = returnCode;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
